package com.health.controller;

import com.health.model.enity.Manager;
import com.health.service.UserService;

import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
    @Reference
    private UserService userService;

    @GetMapping("/hello")
    public String hello(){
        Manager manager = userService.findAll();
        return manager.getMobile();
    }
}
